package Builder_Patten.Video_player;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class client {
    public static void main(String[] args) {
        PlayerBuilder pb;
        pb=(PlayerBuilder) XMLUtil.getBean();
        Player player;
        player=pb.construct();
        System.out.println("当前模式为："+player.getType());
        System.out.println("可用功能有：\n"+player.getMain_window());
        System.out.println(player.getControl());
        if (pb.ismenu())
            System.out.println(player.getMenu());
        else;
        if (pb.islist())
            System.out.println(player.getList());
        else;
        if (pb.iscollection())
            System.out.println(player.getCollection());
        else;
    }
}
